<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@page import="java.util.*"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%!@SuppressWarnings("unchecked")%>

<html:html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Provide degrees - Choose discipline</title>
</head>
<body>
<p><html:errors /></p>
<html:form action="/discipline" method="POST" onsubmit="return validateDegreeForm(this);">
	<%
		String university = request.getParameter("university");
		session.setAttribute("university", university);

		Vector<String> majors = (Vector<String>) request.getAttribute("discs");
	%>
	
		<%
			for (int i = 0; i < majors.size(); i++)
				out.println("<input type=\"radio\" name=\"major\" value=\""
						+ majors.get(i) + "\">" + majors.get(i)
						+ "</input><br>");
		%>
		
		<table border=0>
			<tr>
				<td class="right">Other Major</td>
				<td class="left"><html:text property="othermajor size="20" />
				</td>
			</tr>
			<tr>
				<td class="right">Month</td>
				<td class="left"><html:text property="month" size="2" /></td>
			</tr>
			<tr>
				<td class="right">Year</td>
				<td class="left"><html:text property="middleInit" size="4" />
				</td>
			</tr>
			<tr>
				<td class="right">GPA</td>
				<td class="left"><html:text property="gpa" size="4" />
				</td>
			</tr>
			
			<tr>
			<html:select name="degreeForm" property="title" size="5">
				<html:option value="BS">BS</html:option>
				<html:option value="MS">MS</html:option>
				<html:option value="PHD">PHD</html:option>
				
			</html:select>
			</tr>
			
			<tr>
				<td class="right"><html:submit>Submit</html:submit>
				</td>
				<td class="right"><html:reset>Reset</html:reset>
				</td>
			</tr>	
			<html:javascript formName="degreeForm"/>
		</table>
</html:form>
</body>
</html:html>